include $(RTMEUSDIR)/src/Makefile.generic

all: target

mkdir:
	@if [ ! -d $(OBJDIR) ]; then \
	echo "Make some directories";\
	mkdir -p $(OBJDIR);\
	mkdir -p $(LIBDIR);\
	mkdir -p $(BINDIR);\
	cp rtc.conf $(BINDIR);\
	fi

target: mkdir
	make -C services
	make -C execution_context
	make -C eus

clean:
	make -C services clean
	make -C execution_context clean
	make -C eus clean
	rm -f *~

obj-clean:
	rm -f $(OBJDIR)/*
	rm -f $(BINDIR)/*
	rm -f $(LIBDIR)/*

dist-clean:
	rm -rf $(RTMEUSDIR)/RTMEus



